package com.demo.base.auth.douyin;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author 曳戈泰尔
 * @version 1.0
 * @description 抖音小程序配置信息
 * @date 2023/3/14 2:40 PM
 */
@Configuration
@Data
public class DouConfig {

    @Value("${auth.douyin.app-id}")
    private String appId;

    @Value("${auth.douyin.secret}")
    private String secret;

    private String url = "https://developer.toutiao.com/api/apps/v2/jscode2session";

    private String appidPrefix = "appid";

    private String secretPrefix = "secret";

    private String codePrefix = "code";

    private String anonymousCodePrefix = "anonymous_code";
}
